<%@ page language="java"
	import="java.util.*,bookstore.database.pojo.Customer,bookstore.tools.*"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">		

		<link rel="stylesheet" type="text/css" href="css/my.css">
		<script language="javascript">  
		function check1(){
		document.myForm1.action= "newSearch.do"; 
		document.myForm1.submit(); 		
		
		}</script>

	</head>

	<body>
		<table width="100%" border="0">
			<tr bgcolor="#CCCCCC">
				<td colspan="4">
					&nbsp;
					<span class="STYLE4"> <c:choose>
							<c:when test="${sessionScope.customer == null}">
								您好,请<a href="login.jsp">登录</a>
							</c:when>
							<c:otherwise>
								<c:out value="您好,${sessionScope.customer.customerName}" />（不是<a
									href="login.jsp"><c:out
										value="${sessionScope.customer.customerName}" />?</a>）
							</c:otherwise>
						</c:choose> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<div align="right"><span class="STYLE2"><a href="index.jsp">首页</a>|<a href="bookSubmit.jsp">卖家中心</a>|<a href="showCart.jsp">购物车</a>|帮助</span></div>
					<div align="right" class="STYLE5"></div>
					<div align="center"></div>
				</td>
			</tr>

			<tr>
				<td width="17%" height="30" rowspan="3">
					<a href = "index.jsp" ><span class="STYLE6"> &nbsp;<span class="STYLE7"><img
								src="img/1.bmp" border=0 width="139" height="85" /> </span> </span></a>
				</td>
				<td width="4%" rowspan="3">
					&nbsp;
				</td>
				<td width="71%" height="5">
					<div align="right"></div>
				</td>
				<td width="8%" rowspan="3">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td height="20">
					<div align="right"></div>
				</td>
			</tr>
			<tr>
				<td height="5">
					&nbsp;
					<!-- <form action="newSearch.do" method="post" > -->
					<form name="myForm1" method="post" >
					<div align="right">
						搜索
						<select name="seltype">
							<option>
								全部分类
							</option>
							<c:forEach items="${applicationScope.bookTypes}" var="type">
								<option>
									<c:out value="${type.typeName}" />
								</option>
							</c:forEach>
						</select>
						<input name="keywords" type="text" size="60" />
						<input type="button" name="Submit1" value="搜索" onclick="check1();" />
					</div></form>
				</td>
			</tr>
			<tr bgcolor="#FFCC00">
				<td height="5" colspan="4">
					&nbsp;
				</td>
			</tr>
		</table>
	</body>
</html>
